<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script  src="../js/jquery-1.11.1.js"></script>
		<style>
			button{
				padding: 15px 30px;
				background-color: #aaaa00;
				border: none;
			}
			div{
				width: 400px;
				height: 300px;
				background-color: #0000ff;
				text-align: center;
				line-height: 300px;
			}
		</style>
	</head>
	<body>
		<button id="Btn1">tab1</button>
		<button id="Btn2">tab2</button>
		<button id="Btn3">tab3</button>
		<div class="TEXT"></div>
		<script>
			$("#Btn1").click(function(){
				$("#Btn1").css("background-color","#aaaa00");
				$("#Btn2").css("background-color","#00ffff");
				$("#Btn3").css("background-color","#00ffff");
				$(".TEXT").text("tab文字内容一");
			});
			$("#Btn2").click(function(){
				$("#Btn2").css("background-color","#aaaa00");
				$("#Btn1").css("background-color","#00ffff");
				$("#Btn3").css("background-color","#00ffff");
				$(".TEXT").text("tab文字内容二");
			});
			$("#Btn3").click(function(){
				$("#Btn3").css("background-color","#aaaa00");
				$("#Btn1").css("background-color","#00ffff");
				$("#Btn2").css("background-color","#00ffff");
				$(".TEXT").text("tab文字内容三");			
			});
		</script>
	</body>
</html>
